//
//  VCOfMine.m
//  07_Homework
//
//  Created by 徐昊 on 16/7/23.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "VCOfMine.h"
#import "ViewController.h"
@interface VCOfMine ()

@end

@implementation VCOfMine

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kWidth, kTabBar_Height + 40)];
    [imageView setImage:[UIImage imageNamed:@"my"]];
    [self.view addSubview:imageView];
    [self config];
}

- (void)config {
    UIButton *logInOrRegist = [UIButton buttonWithType:UIButtonTypeSystem];
    logInOrRegist.frame = CGRectMake(kWidth / 2 - 50, 200, 100, 40);
    [self.view addSubview:logInOrRegist];
    logInOrRegist.backgroundColor = [UIColor redColor];
    [logInOrRegist setTitle:@"点击登录/注册" forState:UIControlStateNormal];
    [logInOrRegist addTarget:self action:@selector(handleUp:) forControlEvents:UIControlEventTouchUpInside];
}
- (void)handleUp:(UIButton *)button {
    ViewController *vc = [[ViewController alloc] init];
    UINavigationController *navi = [[UINavigationController alloc] initWithRootViewController:vc];
    [self presentViewController:navi animated:YES completion:^{
        
        
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
